package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 路灯网关传输过来的实时数据
 * @Author: jeecg-boot
 * @Date:   2020-03-12
 * @Version: V1.0
 */
@Data
@TableName("glr_light_current")
public class GlrLightCurrent implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**路灯编号*/
	@Excel(name = "路灯编号", width = 15)
    private String ligCode;
	/**网关编号*/
	@Excel(name = "网关编号", width = 15)
    private String gataWayCode;
	/**电压*/
	@Excel(name = "电压", width = 15)
    private Double currentVol;
	/**电流*/
	@Excel(name = "电流", width = 15)
    private Double currentCur;
	/**亮度*/
	@Excel(name = "亮度", width = 15)
    private Double currentBrightness;
	/**功率*/
	@Excel(name = "功率", width = 15)
    private Double currentPower;
	/**视在功率*/
	@Excel(name = "视在功率", width = 15)
    private Double currentApparentPower;
	/**温度*/
	@Excel(name = "温度", width = 15)
    private Double currentTemperature;
	/**状态*/
	@Excel(name = "状态", width = 15)
    private String currentStatus;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;
	@TableField(exist = false)
	private String gateWayName;
}
